from getInput import *
from story import *

def menu(debug = False):
    if debug:
        print "Welcome to debug mode"
    selection = ""
    while selection != "exit":
        print "--------------Madlibs--------------"
        print "| 1)A Journey                     |"
        print "| 2)Hunters                       |"
        print "| 3)A Poem                        |"
        print "| Exit                            |"
        print "-----------------------------------"
        print "Please make a selection"
        
        selection = getMenuOption(debug)
        if (selection == "1" or
            selection == "one" or
            selection == "story 1" or
            selection == "story one" or
            selection == "journey" or
            selection == "a journey"):
           print story1(debug)
        elif (selection == "2" or
              selection == "two" or
              selection == "story 2" or
              selection == "story two" or
              selection == "hunters"):
            print story2(debug)
        elif (selection == "3" or
              selection == "three" or
              selection == "story 3" or
              selection == "story three" or
              selection == "poem" or
              selection == "a poem"):
            print story3(debug)
        elif (selection == "exit" or
              selection == "quit" or
              selection == "e" or
              selection == "x" or
              selection == "q"):
            exit()
menu()
